style tweaks and better browser compatibility