getting pages working