Update detailController.js

refactor it