bugfixes in new query + loading gif for highcharts