add contract edit