Added a button to expand/collapse all queries