add support for deleting resources
fix error handling in location editor