changed route to pages index