change connect button dynamically