uusing some magic to get controller to call the correct template