simplify the template processing for location info window