                <li>
                    <a onclick="populate_model()" data-toggle="modal" data-target="#GraphQLQueries_form" title="Query Form">Save Current Query As...</a>
                </li>
            </ul>
        </div>
      `
      $(".toolbar").append(queries_tab);
    }, false);
  {% endif %}

    function reload(id, query, variables) {
      if (variables == null){
          variables = '{}';
      }
      window.location.replace("#");
      window.location.hash = 'query=' + query + "&variable