Working on switches controller