Mode switching and oscillations in PSR B1828–11