Calling search method in homepage view