code publish fragment