Create command history popup if needed when the current command changes