set class on view