adds switch for button margin