Hide Find in Files dialog when clicking button.
Improved implementation for autcompletion.
Refactored some code.