change ViewMode from type class to Data Kind