add support for max width to label