added template..rendered callback