enhanced __invoke method, allowed render template by passing argument to __invoke method