refactored editing resources all tests pass