added Pages controller and navigation