updated the button monitor