putting ajax call to getting data and displaying results