added an option for maxWidth