The pagoda top is held in place with two "hair-pin" fasteners. The two halves need to be removed to access the small tabs that protrude below the top metal cover that is below the actual control panel. There are holes in some of them that accept the hair-pin. That keeps the top in place. A small piece of wire works if the hair-pins are missing. If the tabs with the holes are broken, the others can be drilled. Since the top is loose, you can see the tabs by lifting it.
Also, for the sake of the touchpad, get a new sun shield. That 1/4" screw in the center of the top will come out and the disk can be lifted. The new sun shield can be put in place and the disk replaced. Pentair number 42001-0008S.