Added toggleinput trigger