adding a toggle button