changing the timer to use percentage of remaining time