added support for specifying modal width