refactor controllers and devise models