resetMenuCount function added for resting submenu iCount