Refactor to callback2
Clearing the UI