update edit mode