Added comments to submitEdit