adding click function on cells in sample page