add pages controller to handle home and static pages