ai button now sets local field