Some changes to the contract form and added javascript functions for sending data to the controller