added edit function for products and changed product partial so that it displays photo_url