menu closes when clicking on blank space below graphs