update styling
move analytics code up