default controller logic