adding AI functionality to UI"