Added clear button and functionality