added date window functionality