add connect and disconnect button