assets_controller refactor