Moved drag/drop initialization to own function