move param assignment to #viewedProduct