total_pages added in cookies