optimize navigation menu display