fix ui freezes