change logic of product detail view.(unfinished)