toggle button commit