implemented drag and drop for component editor