update resize box