Updated the UI with an output div