removed funny functions from main_frame and gui_client