fixed bug with mouse events from hidden buttons.