added deletePage method