cleanup globals on clear
fine-grained save/update/dirty, hcp persist; navigate on unsaved warning