Added mouse button handling