Function to update the media term