implemented global search. integrated and cleaned up view word for search