Changed index page to be a dictionary instead of an array.