added templates to query popup