Changed updateTime to return a string instead of directly modify mainTimerText