add button as a switch