add statusSpan directive