update styling on elements