Refactoring...removed connection history. Added ui