first rewrite to use pjax for search