How to update/edit contracts