update pillbox