added pageId and type