corrected an error in the button handleEvent logic (a clicked button should not revert to an hovered
button)