Added switch functionnality when clicking on indicator in rule