Search is now working with searchbar.
TODO: refactor!