added support for custom widget width