use pageId variable