Fixed bug with options being set too late.

Moved the option to refresh above where the options are used.
Implementation of pull to refresh on action up