css and template fix for IE8 compatibility