Keep the user on the same view when the main page refreshes.
Interface fixes

- Using history.replaceState to take care of URL appearance.
- Empty preferences pages for later.