I've finally got the controller - template relationship working