code re-formatted
small fixes
fixes
fixes for ie
fixes for ie