Add onclick for each td cell