add quotes around #states value to fix ie bug