add background calculate total pages and you can flip the book with no wait