Display the pages that could not be loaded

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>
Refactored the page handler a bit

Signed-off-by: Toon Schoenmakers <nighteyes1993@gmail.com>