worked on the GUI