Made child inherit  and added thisPage var