Combine-UI-and-algorithm