can you fix     public class CountdownButton : Button
    {
        private CancellationTokenSource _cancellationTokenSource;
        private Stopwatch _stopwatch = new Stopwatch(); // Add this line
        private TimeSpan _countdownDuration;
        private TimeSpan _remainingDuration;
        public string InitialText;
        private string _finishedText;
        public string _pausedText;
        public bool Paused = false;

        public bool IsRunning { get; private set; } = false;
        public TimeSpan RemainingTime => _countdownDuration - _stopwatch.Elapsed; // Modify this line

        public int _beforefinsecs;
        public string _beforefinmsg;

        public CountdownButton(string initialText, int countdownSeconds, string finishedText, int beforefinishsecs = -1, string beforefinishmsg = "", string pausedText = null)
        {
            InitialText = initialText;
            _countdownDuration = TimeSpan.FromSeconds(countdownSeconds);
            _finishedText = finishedText;
            _beforefinsecs = beforefinishsecs;
            _beforefinmsg = beforefinishmsg;
            _pausedText = pausedText;

            this.Text = InitialText;
            this.Clicked += OnButtonClicked;


        }

        private void OnButtonClicked(object sender, EventArgs e)
        {
            if (IsRunning)
            {
                this.Paused = true;
                PauseCountdown();

            }
            else
            {
                this.Paused = false;
                StartCountdown();
            }
        }

        public void StartCountdown()
        {
            App.ActiveCountdownButtons.Add(this);
            IsRunning = true;

            if (Paused)
            {
                // Resume the stopwatch without resetting the elapsed time
                _stopwatch.Start();
            }
            else
            {
                _remainingDuration = _countdownDuration;
                // Reset and start the stopwatch
                _stopwatch.Reset();
                _stopwatch.Start();
            }

            if (_pausedText != null)
            {
                this.Text = _remainingDuration.ToString(@"mm\:ss");
            }
            else
            {
                this.IsEnabled = false;
                this.Text = RemainingTime.ToString(@"mm\:ss");
            }

            if (_cancellationTokenSource == null || _cancellationTokenSource.IsCancellationRequested)
            {
                _cancellationTokenSource = new CancellationTokenSource();
        