started controller logic