Making changes to index of pages controller