update tables with click function