Put code to build search form in ACP in function