Add swith to master slave button