made accordion collapse after selecting date