navigation and show page rewrite