resized windows and repositioned buttons