toggle edit mode buttons