Make publish button work again after FormUI changes

Please let me know if I should apply this to a different branch or refrain from sending pull requests on this admin/formui stuff as you were working on it.