make dragged and dropped files work