added revertResize