gets resources_edit working