Add statistics button and add a dialog for clear history