Before you rotate the extracted lid section, move the pivot point of extracted section to fall on the back edge of the lid. The pivot point of the extracted section will be at the origin (0,0,0) by default. (Ins key on windows, d key on mac)
Earth: The crazy asylum of the universe.