function displaying times on labels