Moved the show template to its own function, and created an init func