update media and template info