change to null instead of false on getting the parent and target page