adding sortable functionality