replace knowledgebase with update and close