completely refactored app to use net:http and moved logic to back end