updated timer and made restart work