refatorado controllers