Add destroy logic of clear button.