added pages, added pagelink and some js-fixes