Simplify retry logic for ui helper functions