Refresh no longer causes selection to be wiped.

Makes it so the polling refresh maintains the selection.
If you go onto another line with you if statements use curly brackets. This is how goto fail was caused.

either do
```
if (thing) {
  statement;
}
```
or do
```
if (thing) statement;
```