add edit_resource_path and resource_path as helper method