when updating stay in edit mode