refactored a bit. Web view does not load requests after pushing. Needs further investigation.