add search and order by date