Implement http request in factory and html