Adds 'done' highlighting and fixes the tablesort bug