Refine addTextPanel