moved ui-building to constructor of the view