removed unused method from refactoring of the gui