need to take switch onclick out of the state update - it calls it to many times
need to take switch onclick out of the state update - it calls it to many times