Implemented the GUI