Create switches dynamicly with right state