updates id and slug