added auto close to date picker