re-factored front-end for views related to product and cart