HUE-1255 [beeswax] Fix show all the queries history toggling

More cleanup in HUE-1254 and HUE-1193