[imp] add search macros for rendering search form and results