limit the pageHistory to 50 items when saved. fixes #634