Added method to clear history, and menu action to sample activity to test this new feature