Moved submission code to inside the GUI.