add editing mode and UI