check the modes array on edit pages too