add rewrite button to navigation.