change to running gui as main process