Refactors http requests from Profile