added resizing of content window