Add speed control function to UI.