Better way of exposing data to widget

Work-in-progress