added logging in to the nav