Implement manual dragging and fix small bugs for search manager