created timer and connected program to ui