make the date widget working