add option to hide date picker when a day is selected