refactor carriers_controller and products_controller