added support for main widget width