add switch to details