added disconnect button, threading when client downloads a file