added classes for list and grid view instead of doing it specific for each page