commented out viewControllerWithRestorationIdentifierPath, which was returning NULL, to be sure it wasn't affecting behavior