fixed bug in IE8 and changed some CSS code