Fixed issues with display and events in IE 8