added AI toggle