Adds eventlisteners for publish and delete
Fixes publishgin articles