moved nav menu code to menu handler class