adding button press and release events