some cross browser compat issues fixed