Sizing and setting text moved to unified function