fixed layout bugs in Firefox and IE