Update handler of selected item in context menu