navigate hierarchy and save history