Added the ability to switch between List and Grid.