linking pages correctly