fixing ui hang