Changed button placement to fit any number of switches as well as possible.