added ends field, changed button names