used replace, transclude and template attributes for the directive