Implemented buttons based on mouse events to replace the ClickButton