Moved delete button to the form actions if it exists in the form.