shifting over to use ajax call