working on drag and drop logic