Added the option to switch between grid and list views within latest_products