adjusted edit so only non-signed contracts can be edited