menu rewrite