Code

Consolidate and share view resetting via new reset_view()