removed imperfect drag and drop code