view.ui now accepts objects and functions