update max width for tooltip