Update class name after title updating