Improved style of ConnectionManager and added a method to toggle a connection