added checkbox + sort functionality