added nav bar selection for pages