added timer and start button functionality