unorganized but working version of drag and drop to edit.