pass grid view products as nested list and make view buttons work