still need to fix the restful api for transactions on angularjs