Very small change, but glad to have got it - figured out how to refer to variables in the views, and do some dynamic stuff.