Clean code on controllers