This is an internal function for replacing the ui with original model and dropping artificial data in output
Useful links