update duration on UI