fixed problem with navigation on mobile devices: menu did not close when item was clicked