rewrite search page