add clear button to clear histories and logs.