add user control for date granularity