added automatic week resizing