create switches component (toggle)