Added Exception Handling
Changed Connect Button to ToggleButton