update contracts_controller.rb