change class to viewClass