move annotation template into directive