Refactor controller y bootstrap local