Deprecated removed, and redefined the state list for submenu, test.