Started to implement the gui and a first event handler.