finish resource_controller and resource_view resource_model