added index
added pages controller