Updated gui to work with run_sim thru run_gui script