Create findListings function in main controller and set ng-clicks for findListings in main view.