Added clear button and auto item clear functionality.