Add onItem argument element where the event was set
Added a destroy method which removes the bindings created, this to avoid memory issues
Save element which triggered the context menu. This makes onItem element work correctly.