working on drag and drop functionality