adopting child in layout base if no parent is set