Organized ProfileController, fixed SearchResults

Organized the code in the profile controller into regions to help
visibility.