material_switch function

Create a shinymaterial switch