Dialog was not changing on end time change