add the functionality for the drag and drop the table and save order number in the table