Fixes issue 31

Parent page and subpage DOM management changes.