refactoring search for jobs and users