Added functionality to the buttons in the field.