for switch widget