added resizing feature
added resizing feature