added the external path to ajax call