<div class="modal-header">
  <h3 class="modal-title">Select topics</h3>
</div>
<div class="modal-body">
  <div class="input-group">
    <input type="text"
      class="form-control"
      placeholder="Search for..."
      ng-model="search">
    <span class="input-group-btn" style="height: 100%">
      <button class="btn btn-default" style="height: 100%" type="button">
        <span class="fa fa-eraser" ng-click="search = ''"></span>
      </button>
    </span>
  </div>
  <br>
  <dtable class="material dt"
      options="tableOptions"
      rows="visibleTopics"
      selected="selectedTopics"></dtable>
  <br>
  <div class="input-group">
    <label for="attribute-grouping-selection">Group by:</label>
    <ul id="attribute-grouping-selection" class="nav nav-pills">
      <li ng-repeat="opt in groupByOptions" role="presentation" ng-class="{active: opt==grouping}">
        <a class="capitalize" href ng-click="groupBy(opt)">{{opt}}</a>
      </li>
    </ul>
  </div>
</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" ng-click="ok()">Close</button>
</div>

<div class="modal-header">
  <h3 class="modal-title">Select topics</h3>
</div>
<div class="modal-body">
  <div class="input-group">
    <input type="text"
      class="form-control"
      placeholder="Search for..."
      ng-model="search">
    <span class="input-group-btn" style="height: 100%">
      <button class="btn btn-default" style="height: 100%" type="button">
        <span class="fa fa-eraser" ng-click="search = ''"></span>
      </button>
    </span>
  </div>
  <br>
  <div>{{visibleTopics.length}} topics</div>
  <br>
  <dtable class="material dt"
      options="tableOptions"
      rows="visibleTopics"
      selected="selectedTopics"></dtable>
  <br>
  <div class="input-group">
    <label for="attribute-grouping-selection">Group by:</label>
    <ul id="attribute-grouping-selection" class="nav nav-pills">
      <li ng-repeat="opt in groupByOptions" role="presentation" ng-class="{active: opt==grouping}">
        <a class="capitalize" href ng-click="groupBy(opt)">{{opt}}</a>
      </li>
    </ul>
  </div>
</div>
<div class="modal-footer">
  <button class="btn btn-primary" type="button" ng-click="ok()">Close</button>
</div>

Add visible topic count to selection modal
Add visible topic count to selection modal
