Fixed a bug when setting buttons

The setButtons method was referencing the `newTitle` var instead of the `newButtons` var.