moved array to pages controller from index, noted out in index