rendering template for first time