cleanup
trigger complete function if trying to fetch next page after fetching last page
fixed fetchLastPage calculation
implemented pagination