removed last page in the main document