connected ML to UI and it works now