Optimize the shopping cart and add delete button