Refactored navbar and root view