added method to make classes draggable