cleaned up api calls in controllers
Merge pull request #14 from sxywu/bg_job

cleaned up api calls in controllers