Added clear button functionality