add functional and switch buttons