Set the state of clear button