added componentResizeListener to frame