add resize selected components
add a `enableResizeSelector` parameter