Proper ui support for marionette views

I changed the property ui to be a function to be able to use it in the same way as events. Otherwise ui cannot be used.