initial stab at views integration - needs a *lot* more work