add timer to mainwindow