added gpio api to switches views"