Create a hook for updating instance types via submit