css and attr now applying to all elements