switch button unfinished implementation

tried to implement a switch button, not finished