Create UI switches dynamically

yes - eg see previous thread Dynamically create dashboard items