isolate UI for better testability