implement clear function in history WebUI