apply class to row