Refresh no longer causes selection to be wiped.

Makes it so the polling refresh maintains the selection.
Added brackets