Add done functionality to UI