fix close buttons and update line items