Updated the GUI to have mouselistener