Applied template on page show event