Dispatch service responses to the functions instead of handling inline.
Add some buttons to recompute various number of days of history.