added more dynamic way to create title for static pages