add clear button and enter press event to input