added alert for dates