Initializes a new instance of the ContextMenu class.
You can override this method while view has disappears