improved sharedUi api