add row and column classes to state manager