change resource_type to a choice field