Refined split-view demo code.