update time format and scroll bar