added method to gui for detection