Refactored UiView class + documentation