add onItemClick function of gridview