Buttons are now linked to event handler

Still have to work on the gui for the popup (currently there's no
background..)