Handle gridview items selection