Refactoring profile controller