Fix prefix save button on edit page

The button would read "Add" regardless if we were adding a new prefix or
editing an existing one. With this fix, the button reads "Save" or "Add"
depending if it is a edit or add operation.

Fixes #523.
Merge branch '523-prefix-save-button'