added search and top product functions