Added handling child hierachy depending on the frame