added pages correctly