added knowledgeBase variable to variablegui caller