change allows toggling between display and edit states