add handling of deleted pages