Made a few changes to the size of whiteboard and to reset the dialog width
because it is only set properly when making it, not when reusing it.