moved resizing mechanism to block model