working on getting query results to be displayed. updating visualization functions