Fix the show template function in the footer