Persist the view mode setting.
Merge pull request #114 from luketn/master

Persist the view mode setting