remove old function call from detail html
refactor cloud service