set up template url and controller