resizes window and boxes, adds stack box