refactors en ConnectionFragment