added interaction to change the selected date