minor refactoring of display hook inclusion in edit templates