Added function of cart and updated it show page