toggle edit after update