add grid view to list view function in search page