changed new_ui to launch_ui and added exit_code functionality