Changed the way the sidebar reacts to the mouse