resizing and undoredo