resize switch, resolve input issue, delete issue