have a function that builds a list of panels, and a list of fields