add quotes around #states value to fix ie bug
added ie fix to states for rest of fields