add condition for no pageId pages to router