OK thanks for the advice. I now plan to use 2 microswitch for the lid for extra security and a timer switch so the unit automatically switch off after certain elapsed time say 10 min. One more question does only the live wire feed to the switch or does the switches need live and earth? I want to use single pole micro switch.
For functional switching it is perfectly normal to only switch the phase (live) conductor, but that is not providing isolation that would be needed for any work on the unit such as replacing the UV tube.
If you are building this just for yourself to use that is probably OK, but it is always a good idea to put a warning on if others might ever try to use it to the effect that you must switch off and unplug it before replacing the tube. The "others" who are unaware of the limitations of the switching might be you in 10 years time!