this needs to be rerendered whenever the button is clicked, why render it on the machine view's render call?