fixing nav bar grayed out issue