Changed onItemClick method