detect delete error and edit error in Edit Page