setup layout for switches