added disconnect method to Node.java and modified the fold states so they update the remove correctly