Fixing issues with searchbar.
fixed a few issues in searchbar code
Simplifying searchbar code.
Ctrl+X now actually works in searchbar.
Merge pull request #112 from deannah/searchFix

Fixing issues with searchbar.