fix contract_type insert, edit and update form