renamed mergeGUI to main