small refacto on controllers configuraiton