Further GUI development, Event handler implementation