changed template controllers