Added a form to select dates and granularity