finally got drag and drop kinda working