view.ui now accepts objects and functions as well as selectors