Edit contracts working