navigation bar tag and logic