Update isOverPanel to method which checks if the panel is hovered

The isOverPanel was set to True or False. This was provoking some issue where there are clickable elements inside the panel. The update has included a change to control the hovering of the panel dynamically.