In general it is potentially problematic using default branch when you don't want default branch, but only searching branch. It add high coupling between upper if and result if. I also think that using switch can help here
```
switch(result)
{
  case `client:
    set_client_term ();
    break;
  case `admin:
    set_admin_term ();
    break;
  case `searching:
    set_searching_term ();
    break;
  default:
    y2internal("unknown event in tab switching");
}