Adds preview to UI