Less  error-prone menu state changing.