Convert ids to classes