now the switches are working also without javascript