Changed the 'class' variable to be prepended with the name of the component, i.e. 'grid_class' or 'grid_cell_class' to avoid conflicts