close #11 Replace $http bu resource and fix formating glitchs