Added code so the main menu works both on hover and on click.