add switch to form