change view to class