if on edit ,then show current state