Added saveAll, fixed setting id on editing