Implemented editor with dragging