added a timer and reset button