add pub sub to edit page