Moved navigation initialization into a setup function