edit contract