updated resize demo