Adding template to pages and fix DisplayContent