refactored profile
updates to search controller