Gui is only displayed if "-g=true" is indicated in command line