Add logic of clicking del and clear button