added clear button code