Changed buttons to button_to; added some comments