fix controller template. add transactional annotation to deleteJSON