Move contents of tui_show_frame_info to new method