Switching WebPage module to direct API calls