added disconnect button function