moved gui operation from clockthread to clocksection
fixed npe