Fixed bug regarding selection

It was possible to select the top row in the deselected windows.
Synched the select all header to selection list

Still an issue with the header not repaiting itself after selection, but
it does get selected/deselected correctly
sql queries now account for all selected