Create If page is parent or child