detect parent page