table toggle working