fixing the date picker binding