Improve resize pattern
Improve optimization status viewer