path is for header, and qpath is for filtered or details, each path corresponding to one div in a template