changes css from the list