adding button to toggle capture