non-deletable first, then everything else. rearrange buttons.
hide generate from template button if it's not going to be used