UI = f(data)(state)