various changes, introduced angularjs implementation for search