Add switch and slider