update navbar and show pages