added the option to use parent scope variables in the label templates