Stop metronome when user navigates to different page