date picker now working