update controller state before sorting by priority