Publish close and open event instead of replace