convert trials search section into ajax request