move dom ids to containing li elements; add :target styles