Added dynamic updating of subtype dropdowns when type dropdown changes.