Added logic to rebuild the object types dropdown when an object type is added.