fixed #217: contract history buttons not working in IE7/IE8