applying ui to views.