update template fragments for frontend