add buttons to switch between list/tree view in search results