main resizing actions