added classes to grid, list and detail view

to allow specific styling
also fixed an issue with gridview sort indicator css.

fixes #1000