Rewrite menu template