changes to get the threading working for sniff in mainDisplay. removed bugs