update type box