connect with ui functionality