change views to class based