Added press and release events to buttons.