toggle the button based on status