GUI: added new exception handling

- handle also WrongPatternException in GUI
- refactored AddHosts call