Got the viewport (ie scrolling) working, plus fixes to adding/removing records.