created a toggle handler
update button text and on click