added ability to directly insert template not just templateUrl