Fix sorting by making global variables
Add grid header with filter panel