More work on GUI Listener and added debug button