add togglePage fn
refactor
modify hash when switching page