added iteritems to layout_opts iteration