add method to init page id (using page name)