editing rectanlge after delete