adding and removing handles correctly with resizing