added view counter to main page, reseting it when adding a item to cart