deleted code to resize by mouse