switch between history pages works and shows the correct content