Move global vars inside the hmenu class