menu closes before next page loads