changes in size of windows to correct gui and delay added before sending prepare and accept messages