Made the mainfile ready for external GUI
mergefix