changed root to pages index