Controller api calls and search setup