I have a problem with the following code. If I click on "New" first, then abort that, then I use "Edit" on a row, the bottom button says "Create", not "Cancel" and "Save" like I would see if I reloaded the page, and just used "Edit" first.
Note that I am using a custom edit button for other reasons.