update hash for navigation