update the context menu on focuschanged event