removed try blocks from b.nextPage and b.previousPage