added resizing ability to frame