added pages controller, partials and modified several views