Added button states and reset button.