pagetreeview: keep it's state on modifications

Fix #879