refactor the kind view