Extend deletehandler to work for publish and unpublish actions