added timer and pause/resume button