adcded wifitrigger and bug fixing