add template tag to query selector