Change gui mode when exiting command input