bulk publish/unpublish functionality