added error/missing pages handling; supported custom loading indicator