fixed resizing of boxes, text, and footer, based on size of window