Flipping Panels

The flipping panels now work correctly.