Replacing switch5 with three buttons