added button to toggle connect/disconnect