moved menu init out of html