added cookie-based view increment functionality