Make listing of templates dynamic