edited previous and next page paths