removed main method from gui