working on ajax call for getting visualizations