add global var for search controller