Added function to make tabs sortable