window resized to fit message box