add event for hide context menu