clear button implementation