new resources_controller logic