Added button to chose time span.