refactor clear basket with modal