End date added into dialog