Added toggle control to AI authoring