The switch brings clips with it so it doesn't fall out. The case can be fastened by good fits or simply glued. It's up to you.
On the back you can still reach the electrical contacts. You can see it in the pictures and better ignore my soldering skills.