Change controller logic