add tooltip functionality to active layer row to display legend