dynamic change tables by menu