The console must be put in the service position in order to access and disconnect the lid switch harness connector and to pry off the two (2) gold colored cabinet retainer clips. Once the cabinet retainer clips have been removed the washer cabinet will hinge forward and then slide off. See the information and images I sent to your e-mail.
In order to access components under the top will require removing the washer cabinet. The top is not designed to come off for servicing.
To access the lid switch the washer cabinet will need to be removed. See images below.
First, disconnect the power cord from the power source
The console (key#26) will need to be placed in the service position by removing two (2) hidden screws, one (1) screw is located at the bottom of the left hand end cap (key#7) and one (1) screw is located at the bottom of the right hand end cap (key#10).
In order to access these two (2) hidden screws, the left hand end cap trim (key#8) and under the right hand end cap trim (key#15) will need to be removed.
To remove the trim (key#8&15), place you finger behind the trim at the very top and bend it up enough to clear the console and then hinge it towards the front and off.
Remove the hidden screw under each end cap trim. Slide the console forwards about 1/4 inch and the raise it upwards and hinge it over the rear panel.
Disconnect the 3 wire lid switch harness plug located on the top. Pop the two (2) gold colored cabinet retainer clips off.
Place the tip of a flat tipped screw driver down into the first valley and then push the handle end to the rear of the washer to pop off the cabinet clips.
Open the lid and grab the opening and tilt the top of the washer cabinet forwards just a few degrees and then walk it backwards and off.
The lid switch mounted under the main top is now accessible to remove and replace.
Reverse the procedure to re-assemble the washer.