Fixed menu z-index and document click event.