add X resize update function