a helper method to create tables with draggable rows