Added code for typeahead in bugs view.
Improved filtering logic.