set application when calling 'setChild'