fixed "show destroy" omission, DRYed generated code