fixed search bar issue by using view controller instead of table view controller