Fixes NavBar

Fixes NavBar not showing the right buttons and not updating his title correctly.