adding the timer and alarm