fixed editing issue after saving changes