added option for selecting a period to display