Load client override template
Get lambda function out of loop