changes done to productClick and ratingClick function