move menu render to router init.