use parent_factory to set application parent