amend for dialog width and height