setup ajax call to backend on initial load