improvements for tutorial fragment replacement