adding button functionality for stopwatch