slight refactoring of show template