make switch controller