Navigation Bar logic and view handling