refactored contracts_controller's handling of ownership