added condition before saving edited exam