add toggle to buttons