add class to represent if the list is currently in list or grid mode.