switch bind for on and off