updated index.blade, improved average price calculation