added clear button and fixed a title bug