implemented AI toggle link