adds eventhandler to Button