delete main from MainGUI