handlePageNotFound method