add dynamic width and centered text