Added cancel to resize state