fix scrollNav functionality so it builds the proper page structure