if clearButton: false, should hide the clear button