mouse event integrated into the menu