extract ui context