add toggle button for switch