initial file structure set up and factories plus ajax call