make the clear button work