Changing the preference language to show first

- Code cleanup;
- Better manual search code.