added a clearQueue method that gets called on click.