updated products, installed devise views

added calculating average_price to product