add calculate eventhandler to button