add editing mode