add onSizeChanged callback handle