functional rewrite settings page