drag and drop done (needs prettyfying)