Update time format and popup layout