Sets td classes in a separate method so that it can be overloaded