add autoid and update menu