add rewrite button