Fix error on nested scaffold close
update scope syntax to rails4
Use rails 4 ActionView::Helpers::Tags::Base subclass instead of rails 3 InstanceTag for country select and USA state select